import request from "./axios"; //导入封装请求的js文件
import {get,post} from "./axios"; 
export default {
  get,
  post,
  getItems(params) {
    return request({
      method: "get",
      url: "/link/api/item",
      params
    })
  },
  syncItem(data) {
    return request({
      method: "post",
      url: "/link/api/item",
      data
    })
  },
  delItem(data) {
    return request({
      method: "delete",
      url: "/link/api/item",
      data
    })
  },

  getSearchs(params) {
    return request({
      method: "get",
      url: "/link/api/search",
      params
    })
  },

  syncSearch(data) {
    return request({
      method: "post",
      url: "/link/api/search",
      data
    })
  },

  delSearch(data) {
    return request({
      method: "delete",
      url: "/link/api/search",
      data
    })
  },

  getDocs(data) {
    return request({
      method: "get",
      url: "/doc/api/docs",
      data
    })
  },
  postDocs(data) {
    return request({
      method: "post",
      url: "/doc/api/docs",
      data
    })
  },
  system(data) {
    return request({
      method: "post",
      url: "/system/api/system",
      data
    })
  },

}